package com.skyz.wrap.entity.result;

public class PaymentMethod {

    /**
     * name : 微信支付
     * icon : icon-weixinzhifu
     * value : weixin
     * title : 微信快捷支付
     */

    private String name;
    private String icon;
    private PayType type;
    private String title;

    public PaymentMethod(String name, String icon, PayType type, String title) {
        this.name = name;
        this.icon = icon;
        this.type = type;
        this.title = title;
    }

    public static PaymentMethod getAlipay() {
        return new PaymentMethod("支付宝",null, PayType.ALIPAY,"支付宝快捷支付");
    }
    public static PaymentMethod getWechatPay() {
        return new PaymentMethod("微信",null, PayType.ALIPAY,"微信快捷支付");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public PayType getType() {
        return type;
    }

    public void setType(PayType type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

}
